﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;
using Engine;

namespace Engine
{
    class Gravity
    {
        public bool gravity;
        public Vector2 myGravity;
        public Vector2 AddForce;

        public Gravity(bool _gravity)
        {
            gravity = _gravity;
            
            if (gravity)
            {
                myGravity = new Vector2(0, 0.3f);//0.03f);
            }
            else
            {
                myGravity = Vector2.Zero;
            }
        }

        public void update(int d_time)
        {
            AddForce = myGravity * d_time;
        }
    }
}
